﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows;
using TeamTasker.Client.BusinessLogic.Commands;
using System.Security.Principal;

namespace TeamTasker.Client.BusinessLogic
{
    public class LoginFormViewModel : DependencyObject
    {
        public LoginFormViewModel()
        {
            LoginCommand = new LoginCommand();
        }

       public LoginCommand LoginCommand
        {
            get { return (LoginCommand)GetValue(LoginCommandProperty); }
            set { SetValue(LoginCommandProperty, value); }
        }

        public static readonly DependencyProperty LoginCommandProperty =
            DependencyProperty.Register("LoginCommand", typeof(LoginCommand), typeof(LoginFormViewModel));

        public string LoginId
        {
            get { return (string)GetValue(LoginIdProperty); }
            set { SetValue(LoginIdProperty, value); }
        }

        public static readonly DependencyProperty LoginIdProperty =
            DependencyProperty.Register("LoginId", typeof(string), typeof(LoginFormViewModel));

        public string Password
        {
            get { return (string)GetValue(PasswordProperty); }
            set { SetValue(PasswordProperty, value); }
        }

        public static readonly DependencyProperty PasswordProperty =
            DependencyProperty.Register("Password", typeof(string), typeof(LoginFormViewModel));

        public bool Autologin
        {
            get { return (bool)GetValue(AutologinProperty); }
            set { SetValue(AutologinProperty, value); }
        }

        public static readonly DependencyProperty AutologinProperty =
            DependencyProperty.Register("Autologin", typeof(bool), typeof(LoginFormViewModel));

        public bool Autostart
        {
            get { return (bool)GetValue(AutostartProperty); }
            set { SetValue(AutostartProperty, value); }
        }

        public static readonly DependencyProperty AutostartProperty =
            DependencyProperty.Register("Autostart", typeof(bool), typeof(LoginFormViewModel));


    }
}
